﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ATMCommonLib
{
    public static class EncodingHelper
    {
        public static string BytesToStr(byte[] byteArray)
        {
            string str = string.Empty;

            if (byteArray == null)
            {
                return str;
            }

            foreach (byte bItem in byteArray)
            {
                str += bItem.ToString("x2");
            }

            return str;
        }

    }
}
